home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
050
/
madtrb9.arc
/
UT-MOD90.INC
< prev
Wrap
Text File
|
1984-09-11
|
1KB
|
49 lines
procedure ProgramExit;
begin
Clrscr; Center('This Program is about to end',1,11,80);
highvideo; Center('Verify Ok (Y/N)',1,13,80); lowvideo;
repeat
Option; if not (Ch in ['Y','N']) then beep(350,150);
until Ch in ['Y','N'];
end;
procedure MainMenu;
var I,Tab: integer;
Okchoices: set of char;
begin
if First_run then
begin
ClrScr; HighVideo;
Center('*** MAIN MENU *** ',1,4,80); LowVideo;
for I:= 1 to 4 do writeln('');
Tab:= 25;
writeln('':Tab,'<1> ');
writeln('':Tab,'<2> '); writeln('');
writeln('':Tab,'<3> ');
writeln('':Tab,'<4> '); writeln('');
writeln('':Tab,'<5> ');
writeln('':Tab,'<6> '); writeln('');
writeln('':Tab,'<7> Exit the Program'); writeln('');
Box(20,2,60,20,6);writeln('');
SaveScreen; First_run:=false;
end else FlashScreen;
Set_Cap_num(' ','N',' '); Say_Cap_Num;
Highvideo; Center('Press Your Selection',21,19,38); LowVideo;
OKchoices:=['1'..'7'];
repeat
Option; if not (Ch in OKchoices) then Beep(350,150);
until Ch in OKchoices;
case Ch of
'1' : ;
'2' : ;
'3' : ;
'4' : ;
'5' : ;
'6' : ;
'7' : begin
ProgramExit;
if Ch='Y' then Exit := true;
end;
end; { case }
end;